package com.yuma.scheduledemo.component;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class TimerSchedule {

    @Scheduled(cron = "0 */5 * * * *")
    public void schedule()
    {
        System.out.println(LocalDateTime.now());
    }
}
